package com.yunji.framework_template.biz.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.yunji.framework_template.common.web.Page;
import com.yunji.framework_template.orm.persistence.mapper.SitesTypeMapper;
import com.yunji.framework_template.orm.persistence.model.SitesType;

/**
 * Created by fenglibin on 2018/11/15.
 */
@Service
public class SitesTypeService {

    @Autowired
    private SitesTypeMapper sitesTypeMapper;

    public int deleteByPrimaryKey(Integer id) {
        return sitesTypeMapper.deleteByPrimaryKey(id);
    }

    public int insert(SitesType record) {
        return sitesTypeMapper.insert(record);
    }

    public int insertSelective(SitesType record) {
        return sitesTypeMapper.insertSelective(record);
    }

    public SitesType selectByPrimaryKey(Integer id) {
        return sitesTypeMapper.selectByPrimaryKey(id);
    }

    public int updateByPrimaryKeySelective(SitesType record) {
        return sitesTypeMapper.updateByPrimaryKeySelective(record);
    }

    public int updateByPrimaryKey(SitesType record) {
        return sitesTypeMapper.updateByPrimaryKey(record);
    }

    public List<SitesType> selectByCondition(SitesType record) {
        return sitesTypeMapper.selectByCondition(record);
    }

    public List<SitesType> selectAll() {
        return sitesTypeMapper.selectAll();
    }
    
    public List<SitesType> selectPType() {
        return sitesTypeMapper.selectPType();
    }

    public List<SitesType> selectByPage(Page<SitesType> page) {
        return sitesTypeMapper.selectByPage(page);
    }

    public Integer count(SitesType record) {
        return sitesTypeMapper.count(record);
    }

    public int deleteByCondition(SitesType record) {
        return sitesTypeMapper.deleteByCondition(record);
    }

}
